home *** CD-ROM | disk | FTP | other *** search
- from PSPApp import *
-
- def ScriptProperties():
- return {
- 'Author': u'Corel Corporation',
- 'Copyright': u'Copyright (c) 2003-2004 Corel Corporation All rights reserved.',
- 'Description': u'',
- 'Host': u'Paint Shop Pro',
- 'Host Version': u'8.10'
- }
-
- def Preset_BallsAndBubbles():
- return {
- 'Illumination': {
- 'MaxAmbience': 100,
- 'MinAmbience': 0,
- 'LightList': [{
- 'BubbleLight': App.Constants.Boolean.false,
- 'Color': (255,255,255),
- 'Direction': (0.602786,-0.717903,-0.348231),
- 'HighlightSize': 11
- },{
- 'BubbleLight': App.Constants.Boolean.false,
- 'Color': (192,192,192),
- 'Direction': (-0.54285,0.492579,0.680205),
- 'HighlightSize': 24
- },{
- 'BubbleLight': App.Constants.Boolean.false,
- 'Color': (161,157,157),
- 'Direction': (-0.03154,-0.046415,0.998424),
- 'HighlightSize': 20
- }]
- },
- 'Mode': App.Constants.CountType.Multiple,
- 'Multiple': {
- 'AverageSize': 40,
- 'Coverage': 20,
- 'CreateMethod': App.Constants.BubbleCreateMethod.NonIntersecting,
- 'SizeVariation': 100
- },
- 'RandomSeed': 21739,
- 'RandomizePlacement': App.Constants.Boolean.false,
- 'Single': {
- 'MaxPossibleSize': App.Constants.Boolean.true
- },
- 'Surface': {
- 'Material': {
- 'Color': None,
- 'Pattern': None,
- 'Gradient': {
- 'Name': u'Corel_06_001',
- 'GradientType': App.Constants.GradientType.Radial,
- 'Angle': 0,
- 'RepeatCount': 0,
- 'RepeatType': App.Constants.RepeatType.Pad,
- 'ColorStops': None,
- 'TransparencyStops': [],
- 'CenterPoint': (0.5,0.5),
- 'FocalPoint': (0.5,0.5),
- 'Invert': App.Constants.Boolean.true
- },
- 'Texture': None
- },
- 'BumpMap': {
- 'Active': App.Constants.Boolean.false,
- 'Depth': 63,
- 'FileName': r'',
- 'Fit': App.Constants.Boolean.false,
- 'Size': 335,
- 'Smoothness': 37
- },
- 'EnvironmentMap': {
- 'FringeType': 17996,
- 'Active': App.Constants.Boolean.false,
- 'FileName': r'',
- 'FringeSpacing': 2,
- 'PatternOpacity': 33,
- 'EnvironmentType': App.Constants.BubbleMapType.CurrentImage
- },
- 'Gloss': 20,
- 'Opacity': 20,
- 'Shininess': 50
- }
- }
-
- def Do(Environment):
- # Balls And Bubbles
- App.Do( Environment, 'BallsAndBubbles', Preset_BallsAndBubbles())
-
-